package com.cn.wxwinnie.java.reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * @author 潇湘暮雨 E-mail:wxwinnie@hotmail.com
 * 
 * @version 创建时间：2014年3月24日 上午8:59:18
 * 
 */
public class Test {

	public static void main(String[] args) throws SecurityException,
			NoSuchMethodException, IllegalArgumentException,
			InstantiationException, IllegalAccessException,
			InvocationTargetException {
		Constructor<String> contor = String.class.getConstructor(Integer.class);
		String str = contor.newInstance(23);
		System.out.println(str);
		Method md = String.class.getDeclaredMethod("charAt", Integer.class);
		//md.invoke(obj, args)
	}

}
